import java.awt.Color;
import java.awt.Graphics;
import java.awt.List;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;

import javax.swing.JButton;

import org.jhotdraw.framework.*;
import org.jhotdraw.standard.StandardDrawingView;


public class DrawingCanvas extends StandardDrawingView {
	
	public DrawingCanvas(DrawingEditor editor) {
		super(editor);
		this.setBackground(new Color(173,216,230));
		
	}

	public DrawingCanvas(DrawingEditor editor, int width, int height) {
		super(editor, width, height);
		this.setBackground(new Color(173,216,230));
		// TODO Auto-generated constructor stub
	}
	
	public void getGUICode(){
		int figureCount = 0;
		FigureEnumeration fe = fDrawing.figures();
		while (fe.hasNextFigure() == true){
			Figure currentFigure = fe.nextFigure();
			figureCount++;
		}
		System.out.println("There are " + figureCount + " figures in panel");
	}

	
}
	


